* lisp/progmodes/sh-script.el (sh-here-doc-open-re): Don't rely on the
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Feb 2011 19:46:47 +0000 (14:46 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 5 Feb 2011 19:46:47 +0000 (14:46 -0500)
commit8c0ea5b2ae5a81934fc7c15ed5ce06f343cde527
treecd94d574df6f1ef86e51396e9244b483f94221e2
parent65465ef207ace0d349c7247c4e9c1fdb0698c2fb
* lisp/progmodes/sh-script.el (sh-here-doc-open-re): Don't rely on the
font-lock-syntax-table remappings.
(sh-here-doc-markers, sh-here-doc-re): Remove.
(sh-font-lock-close-heredoc): Remove.
(sh-syntax-propertize-here-doc): New function.
(sh-font-lock-open-heredoc): Set the sh-here-doc-marker property
instead of the sh-here-doc-re.
(sh-font-lock-paren): Don't do anything in comments or strings.
Handle line continuations.  Accept a few more chars.
Don't rely on the font-lock-syntax-table remappings.
`esac' is not a valid pattern.
(sh-syntax-propertize-function): Handle here-docs differently, so we
don't bother syntax-propertizing the insides.
lisp/ChangeLog
lisp/progmodes/sh-script.el